package com.swanclouds.redfish.common.redfish;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonRootName;
import com.swanclouds.model.ModelEntity;

/**
 * Author:      HuangFuYuHui
 * Title:       SimpleUpdate
 * Description:  升级固件请求参数
 * Date:        2022/7/28 10:46
 */
public class SimpleUpdate implements ModelEntity {

    @JsonProperty("ImageURI")
    private String ImageURI;

    @JsonProperty("TransferProtocol")
    private TransferProtocol transferProtocol;

    @JsonProperty("ActiveMode")
    private ActiveMode activeMode;

    @JsonRootName("TransferProtocol")
     enum TransferProtocol implements ModelEntity{
        HTTPS,
        SCP,
        SFTP,
        CIFS,
        TFTP,
        NFS;
    }

    @JsonRootName("ActiveMode")
    enum ActiveMode implements ModelEntity{
        Immediately,
        ResetBMC;
    }
}
